package com.liu.auto;

import org.springframework.boot.context.properties.ConfigurationProperties;

@ConfigurationProperties(prefix = "token")
public class TokenProperties {
    private final long DEFAULT_TIME = 30*60*1000;

    private final String DEFAULT_SECRET = "asdgfq's;[fasd]as';asafs";

    long valisTime; //单位是分钟

    String secret; //密钥


    public TokenProperties() {
        this.valisTime = DEFAULT_TIME;
        this.secret = DEFAULT_SECRET;
    }


    public long getValisTime() {
        return valisTime;
    }

    public void setValisTime(long valisTime) {
        this.valisTime = valisTime;
    }

    public String getSecret() {
        return secret;
    }

    public void setSecret(String secret) {
        this.secret = secret;
    }
}
